#ifndef BSP_SYSTEM_H
#define BSP_SYSTEM_H

#include "stdio.h"
#include "stdarg.h"
#include "string.h"


#include "lcd.h"
#include "main.h"
#include "usart.h"
#include "system.h"

#include "scheduler.h"


#include "lcd_app.h"
#include "uart_app.h"



#include "ringbuffer.h"

extern uint16_t uart_rx_index;//接收缓存索引
extern uint32_t uart_rx_ticks;//接收缓存时间戳
extern uint8_t uart_rx_buffer[128];//接收缓存

extern uint8_t uart_rx_dma_buffer[128];//接收缓存
extern uint32_t dma_buff[2][30];//DMA接收缓存

extern uint8_t rx_state;//定义一个接收状态值的变量
extern uint8_t rx_data[1024]; // 定义一个接收数据的变量

extern uint16_t uart_count;
extern uint16_t DMA_count;

extern DMA_HandleTypeDef hdma_usart1_rx;
#endif


